package com.aaa.service.impl;

import com.aaa.dao.DeptMapper;
import com.aaa.entity.Dept;
import com.aaa.service.DeptService;
import com.aaa.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description:
 * @author:LiWei
 * @date:2022年09月29日20:19
 */
@Service
public class DeptServiceImpl implements DeptService {
    @Autowired
    private DeptMapper deptMapper;
    @Qualifier("dept")
    @Override
    public Result findAll() {
        List<Dept> all = deptMapper.findAll();
        return new Result(200,"查询成功",all);
    }
}
